﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SensorMayhem.Helpers
{
    public static class LuxToCondition
    {
        public static string ConvertLuxToCondition(int lux)
        {

            if(lux < 10)
                return "Pitch Black";
            else if(lux < 50)
                return "Very Dark";
            else if (lux < 200)
                return "Dark Indoors";
            else if (lux < 400)
                return "Dim Indoors";
            else if (lux < 1000)
                return "Normal Indoors";
            else if (lux < 5000)
                return "Bright Indoors";
            else if (lux < 10000)
                return "Dim Outdoors";
            else if (lux < 30000)
                return "Cloudy Outdoors";
            else
                return "Direct Sunlight";
        }
    }
}
